ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods






STATEMENT:  Call

Call

The Call statement can be used for calling a function or subroutine.

Note that the use of Call is optional. In other words, you can call a function or subroutine by simply stating the function's or subroutine's name. If you use Call and if there are one or more arguments to be passed you must include all of the arguments enclosed in parenthesis.

Code:
<% Call afunction %>  

<% afunction %>  

<% Call myfunction(myvar1, myvar2, mystring, myaray) %>  

<% Call returnvalue = somefunction(yourvar1, yourvar2) %>  

<% Call anysubroutine(anum, astring) %>  

<% anothersubroutine %>